package com.sdleyou.treepro.common.model.convert;

import com.sdleyou.treepro.common.model.dao.UserDO;
import com.sdleyou.treepro.common.model.vo.CompanyUserVO;

public class UserDO2CompanyUserVO {
    public static CompanyUserVO convert(UserDO userDO) {
        CompanyUserVO companyUserVO = new CompanyUserVO();
        companyUserVO.setUserId(userDO.getUserId());
        companyUserVO.setUserName(userDO.getNickname());
        companyUserVO.setFace(userDO.getFace());
        companyUserVO.setRole(userDO.getRole());
        companyUserVO.setContribute(userDO.getCompanyContribute());
        return companyUserVO;
    }
}
